package cn.javass.dp.chianofresponsibility.example6;

public class SaleDataCheck extends SaleHandle{
    @Override
    public boolean sale(String user, String customer, SaleModel saleModel) {
        if (user == null && user.trim().length() == 0) {
            System.out.println("申请人不能为空");
            return false;
        }

        return this.successor.sale(user, customer, saleModel);
    }
}
